﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace NEWS.BLL
{
    public class News
    {
        public static bool add(NEWS.Model.News news)
        {
            return NEWS.DAL.News.add(news);
        }

        public static List<NEWS.Model.News> list()
        {
            return NEWS.DAL.News.list();
        }

        public static List<NEWS.Model.News> list(int menu)
        {
            return NEWS.DAL.News.list(menu);
        }

        public static bool del(int id)
        {
            return NEWS.DAL.News.del(id);
        }

        public static NEWS.Model.News GetNews(int id)
        {
            return NEWS.DAL.News.GetNews(id);
         }

        public static bool update(NEWS.Model.News news)
        {
            return NEWS.DAL.News.update(news);
        }
    }
}
